﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200119F RID: 4511
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetTurnFoodSwitchCsReq : IMessage<SetTurnFoodSwitchCsReq>, IMessage, IEquatable<SetTurnFoodSwitchCsReq>, IDeepCloneable<SetTurnFoodSwitchCsReq>, IBufferMessage
	{
		// Token: 0x17003914 RID: 14612
		// (get) Token: 0x0600C9EF RID: 51695 RVA: 0x002203E1 File Offset: 0x0021E5E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetTurnFoodSwitchCsReq> Parser
		{
			get
			{
				return SetTurnFoodSwitchCsReq._parser;
			}
		}

		// Token: 0x17003915 RID: 14613
		// (get) Token: 0x0600C9F0 RID: 51696 RVA: 0x002203E8 File Offset: 0x0021E5E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetTurnFoodSwitchCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003916 RID: 14614
		// (get) Token: 0x0600C9F1 RID: 51697 RVA: 0x002203FA File Offset: 0x0021E5FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetTurnFoodSwitchCsReq.Descriptor;
			}
		}

		// Token: 0x0600C9F2 RID: 51698 RVA: 0x00220401 File Offset: 0x0021E601
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetTurnFoodSwitchCsReq()
		{
		}

		// Token: 0x0600C9F3 RID: 51699 RVA: 0x00220409 File Offset: 0x0021E609
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetTurnFoodSwitchCsReq(SetTurnFoodSwitchCsReq other) : this()
		{
			this.lOKHMBEONGM_ = other.lOKHMBEONGM_;
			this.gKJMGGJJCFI_ = other.gKJMGGJJCFI_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C9F4 RID: 51700 RVA: 0x0022043A File Offset: 0x0021E63A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetTurnFoodSwitchCsReq Clone()
		{
			return new SetTurnFoodSwitchCsReq(this);
		}

		// Token: 0x17003917 RID: 14615
		// (get) Token: 0x0600C9F5 RID: 51701 RVA: 0x00220442 File Offset: 0x0021E642
		// (set) Token: 0x0600C9F6 RID: 51702 RVA: 0x0022044A File Offset: 0x0021E64A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool LOKHMBEONGM
		{
			get
			{
				return this.lOKHMBEONGM_;
			}
			set
			{
				this.lOKHMBEONGM_ = value;
			}
		}

		// Token: 0x17003918 RID: 14616
		// (get) Token: 0x0600C9F7 RID: 51703 RVA: 0x00220453 File Offset: 0x0021E653
		// (set) Token: 0x0600C9F8 RID: 51704 RVA: 0x0022045B File Offset: 0x0021E65B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TurnFoodSwitch GKJMGGJJCFI
		{
			get
			{
				return this.gKJMGGJJCFI_;
			}
			set
			{
				this.gKJMGGJJCFI_ = value;
			}
		}

		// Token: 0x0600C9F9 RID: 51705 RVA: 0x00220464 File Offset: 0x0021E664
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetTurnFoodSwitchCsReq);
		}

		// Token: 0x0600C9FA RID: 51706 RVA: 0x00220472 File Offset: 0x0021E672
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetTurnFoodSwitchCsReq other)
		{
			return other != null && (other == this || (this.LOKHMBEONGM == other.LOKHMBEONGM && this.GKJMGGJJCFI == other.GKJMGGJJCFI && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C9FB RID: 51707 RVA: 0x002204B0 File Offset: 0x0021E6B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LOKHMBEONGM)
			{
				num ^= this.LOKHMBEONGM.GetHashCode();
			}
			if (this.GKJMGGJJCFI != TurnFoodSwitch.None)
			{
				num ^= this.GKJMGGJJCFI.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C9FC RID: 51708 RVA: 0x0022050E File Offset: 0x0021E70E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C9FD RID: 51709 RVA: 0x00220516 File Offset: 0x0021E716
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C9FE RID: 51710 RVA: 0x00220520 File Offset: 0x0021E720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GKJMGGJJCFI != TurnFoodSwitch.None)
			{
				output.WriteRawTag(16);
				output.WriteEnum((int)this.GKJMGGJJCFI);
			}
			if (this.LOKHMBEONGM)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.LOKHMBEONGM);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C9FF RID: 51711 RVA: 0x0022057C File Offset: 0x0021E77C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LOKHMBEONGM)
			{
				num += 2;
			}
			if (this.GKJMGGJJCFI != TurnFoodSwitch.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.GKJMGGJJCFI);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CA00 RID: 51712 RVA: 0x002205C8 File Offset: 0x0021E7C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetTurnFoodSwitchCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LOKHMBEONGM)
			{
				this.LOKHMBEONGM = other.LOKHMBEONGM;
			}
			if (other.GKJMGGJJCFI != TurnFoodSwitch.None)
			{
				this.GKJMGGJJCFI = other.GKJMGGJJCFI;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CA01 RID: 51713 RVA: 0x00220618 File Offset: 0x0021E818
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CA02 RID: 51714 RVA: 0x00220624 File Offset: 0x0021E824
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.LOKHMBEONGM = input.ReadBool();
					}
				}
				else
				{
					this.GKJMGGJJCFI = (TurnFoodSwitch)input.ReadEnum();
				}
			}
		}

		// Token: 0x04005110 RID: 20752
		private static readonly MessageParser<SetTurnFoodSwitchCsReq> _parser = new MessageParser<SetTurnFoodSwitchCsReq>(() => new SetTurnFoodSwitchCsReq());

		// Token: 0x04005111 RID: 20753
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005112 RID: 20754
		public const int LOKHMBEONGMFieldNumber = 9;

		// Token: 0x04005113 RID: 20755
		private bool lOKHMBEONGM_;

		// Token: 0x04005114 RID: 20756
		public const int GKJMGGJJCFIFieldNumber = 2;

		// Token: 0x04005115 RID: 20757
		private TurnFoodSwitch gKJMGGJJCFI_;
	}
}
